import java.math.BigInteger;
import java.util.Arrays;

import java.util.Scanner;




class Person implements Cloneable{
    public int age;

    public Person(int age) {
        this.age = age;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                '}';
    }

}

public class Test {

    public static void main(String[] args) throws CloneNotSupportedException {
        Person person1 = new Person(18);
        Person person2 = (Person) person1.clone();
        System.out.println(person1.toString());
        System.out.println(person2.toString());
    }
}
